import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ListView from '../views/ListView.vue'
import ClassifyView from '../views/ClassifyView.vue'
import listNR from '../components/listNR.vue'
import look from '../components/look.vue'
import discuss from '../components/discuss.vue'
import ping from '../components/ping.vue'
import shujia from '../components/shujia.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    alias: '/home'
  },
  {
    path: '/list',
    name: 'list',
    component: ListView
  },
  {
    path: '/classify',
    name: 'classify',
    component: ClassifyView
  },
  {
    path: '/listNR',
    name: 'listNR',
    component: listNR
  },
  {
    path: '/look',
    name: 'look',
    component: look
  },
  {
    path: '/discuss',
    name: 'discuss',
    component: discuss
  },
  {
    path: '/ping',
    name: 'ping',
    component: ping
  },
  {
    path: '/shujia',
    name: 'shujia',
    component: shujia
  }
]

const router = new VueRouter({
  routes
})

export default router
